<%
    def messageCode = 'job.button.pend'
    if (currentStatus == Constants.JOB_STATUS_PENDING)
        messageCode = 'job.button.done'
    else if (currentStatus == Constants.JOB_STATUS_DONE)
        messageCode = 'job.button.deliver'
%>
<g:if test="${currentStatus != Constants.JOB_STATUS_DELIVERED}">
    %{--<g:actionSubmit class="edit" value="${message(code: messageCode)}" action="process" onclick="${onclick}"/>--}%
    <input class="edit" type="button" value="${message(code: messageCode)}" onclick="${onclick}"/>
</g:if>